/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rejeev.tracer;

/**
 *
 * @author rejeev.divakaran
 */
public class TracerConfiguration implements TracerConfigurationMBean{

    @Override
    public void addThread(String threadName) {
        Configuration.getInstance().addThread(threadName);
    }

    @Override
    public void removeThread(String threadName){
        Configuration.getInstance().removeThread(threadName);
    }

    @Override
    public void allThreadsMonitored(boolean flag){
        Configuration.getInstance().setAllThreadsLogged(flag);
    }

    @Override
    public void enableLogging(boolean isEnabled){
        Configuration.getInstance().enableLogging(isEnabled);
    }

    @Override
    public void stopTracing() {
        Tracer.stopTracing();
    }
}
